<?php

class PaymentrecordsController extends AppController {

    public $name = 'Paymentrecords';
    
    public $uses = array('Paymentrecord');

    public $helpers = array('Text', 'Html', 'Js');
    protected $paginate = array(
        'limit' => 10,
    );


    public function admin_index() {
        $this->set('title_for_layout', __('PAYMENT RECORDS'));
        
        $contacttypes = $this->Aihcontact->find('first',array('conditions' => array('Aihcontact.id' => 'Producer')));

        $this->Paymentrecord->recursive = 0;
        $this->paginate['Paymentrecord']['order'] = 'Paymentrecord.id DESC';
        
        $this->set('Paymentrecords', $this->paginate());
    }

    public function admin_add() {
        
    }

    public function admin_edit($id = null) {
        

    }

    public function admin_delete($id = null) {
        
    }
}
?>